<!--
 * @Descripttion: 
 * @version: 
 * @Author: zhangfan
 * @email: 2207044692@qq.com
 * @Date: 2021-02-25 09:16:14
 * @LastEditors: zhangfan
 * @LastEditTime: 2021-03-30 17:01:18
-->
<template>
  <div class="container mainCon">
    <el-tabs
      v-model="activeName"
      type="card"
      @tab-click="handleClick"
      class="tabs"
    >
      <el-tab-pane label="PC端" name="first">
        <helpList v-if="isShowFirst" :clientType="pcType"></helpList>
      </el-tab-pane>
      <!--            <el-tab-pane label="APP端" name="second">-->
      <!--                <helpList v-if="isShowSecond" :clientType="appType"></helpList>-->
      <!--            </el-tab-pane>-->
    </el-tabs>
  </div>
</template>

<script>
import helpList from '@/components/help/helpList'
export default {
  name: 'helpTab',
  components: {
    helpList,
  },
  data() {
    return {
      activeName: 'first',
      isShowFirst: true,
      isShowSecond: false,
      pcType: 'PC',
      appType: 'APP',
    }
  },
  created() {},
  methods: {
    //tabs栏切换
    handleClick(tab, event) {
      if (tab.label == 'PC端') {
        this.isShowFirst = true
      } else if (tab.label == 'APP端') {
        this.isShowSecond = true
      }
    },
  },
}
</script>

<style scoped lang="less">
.container {
  .mainCon {
    top: 130px;
    padding: 0;
  }
  // tab栏切换
  .tabs {
    /deep/ .el-tabs__content {
      background: #fff;
      // min-height: 500px;
      padding: 24px 0px;
    }
    /deep/ .el-tabs__header {
      margin: 0;
    }
    /deep/ .el-tabs__nav-scroll {
      overflow: hidden;
      background: #e4ebf1;
      /* margin-top: 10px; */
      padding-top: 15px;
    }
    /deep/ .el-tabs__item.is-active {
      font-size: 14px;
      color: #333;
      font-weight: bold;
      background: #fff;
      border-top-left-radius: 4px;
      border-top-right-radius: 4px;
    }
    /deep/ .el-tabs__item {
      color: #333;
      background: #d5e0e9;
      border-top-left-radius: 4px;
      border-top-right-radius: 4px;
    }
    /deep/ .el-tabs__item:first-child {
      margin: 0 4px 1px 24px;
    }
    /deep/ .el-tabs__item {
      margin-right: 4px;
    }
    /deep/ .el-tabs__item:last-child {
      margin-right: 0;
    }
  }
}
</style>
